package edu.utexas.ipc;

class NullConnection implements Connection {

	public void close() {
		// no-op
	}

	public boolean isConnected(int processID) {
		return false;
	}

	public Message receive() throws InterruptedException {
		return null;
	}

	public Message receive(int timeout) throws InterruptedException {
		// no-op
		return null;
	}

	public void registerListener(MessageListener listener) {
		// no-op
	}

	public void send(String message) {
		// no-op
	}

	public void send(int destID, String message) {
		// no-op
	}

}
